<template>
  <h2>我是About的内容</h2>
</template>
<script>
export default {
    name:'About',
    beforeDestroy () {
      console.log('About-beforeDestroy')
    },
    mounted () {
      console.log('About-mounted')
    },
    beforeRouteEnter (to, from, next) {
      // ...通过路由规则进入时调用
      console.log(1)
      next();
    },
    beforeRouteLeave (to, from, next) {
      // ...通过路由规则离开时调用
      console.log(2)
       next();
    }

}
</script>

<style>

</style>